﻿using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System.IO;
using WYCore.Web.Areas.Admin.Data;

namespace WYFast.Web.Areas.Admin.Controllers
{
    public class ClientDataController : BaseController
    {


        public IActionResult GetClientDataJson()
        {
            var filePath = Directory.GetCurrentDirectory() + "\\App_Data\\tmpdate.json";
            FileInfo config = new FileInfo(filePath);
            StreamReader sr = new StreamReader(filePath, System.Text.Encoding.UTF8);
            var s = sr.ReadToEnd();

            return Json(JsonConvert.DeserializeObject(s));
            //return Json("Seecuss");
        }
    }
}